/*
 * XML Type:  BillPaymentstatus
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.BillPaymentstatus
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML BillPaymentstatus(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class BillPaymentstatusImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.BillPaymentstatus
{
    
    public BillPaymentstatusImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SRVRTID$0 = 
        new javax.xml.namespace.QName("", "SRVRTID");
    private static final javax.xml.namespace.QName BILLPMTSTATUSCODE$2 = 
        new javax.xml.namespace.QName("", "BILLPMTSTATUSCODE");
    private static final javax.xml.namespace.QName DTEFF$4 = 
        new javax.xml.namespace.QName("", "DTEFF");
    private static final javax.xml.namespace.QName STATUSMODBY$6 = 
        new javax.xml.namespace.QName("", "STATUSMODBY");
    
    
    /**
     * Gets the "SRVRTID" element
     */
    public java.lang.String getSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SRVRTID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "SRVRTID" element
     */
    public net.ofx.types.x2003.x04.ServerIdType xgetSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(SRVRTID$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "SRVRTID" element
     */
    public boolean isSetSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SRVRTID$0) != 0;
        }
    }
    
    /**
     * Sets the "SRVRTID" element
     */
    public void setSRVRTID(java.lang.String srvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SRVRTID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SRVRTID$0);
            }
            target.setStringValue(srvrtid);
        }
    }
    
    /**
     * Sets (as xml) the "SRVRTID" element
     */
    public void xsetSRVRTID(net.ofx.types.x2003.x04.ServerIdType srvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(SRVRTID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ServerIdType)get_store().add_element_user(SRVRTID$0);
            }
            target.set(srvrtid);
        }
    }
    
    /**
     * Unsets the "SRVRTID" element
     */
    public void unsetSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SRVRTID$0, 0);
        }
    }
    
    /**
     * Gets the "BILLPMTSTATUSCODE" element
     */
    public net.ofx.types.x2003.x04.BillPaymentstatusCodeEnum.Enum getBILLPMTSTATUSCODE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLPMTSTATUSCODE$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.BillPaymentstatusCodeEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "BILLPMTSTATUSCODE" element
     */
    public net.ofx.types.x2003.x04.BillPaymentstatusCodeEnum xgetBILLPMTSTATUSCODE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillPaymentstatusCodeEnum target = null;
            target = (net.ofx.types.x2003.x04.BillPaymentstatusCodeEnum)get_store().find_element_user(BILLPMTSTATUSCODE$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "BILLPMTSTATUSCODE" element
     */
    public void setBILLPMTSTATUSCODE(net.ofx.types.x2003.x04.BillPaymentstatusCodeEnum.Enum billpmtstatuscode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BILLPMTSTATUSCODE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BILLPMTSTATUSCODE$2);
            }
            target.setEnumValue(billpmtstatuscode);
        }
    }
    
    /**
     * Sets (as xml) the "BILLPMTSTATUSCODE" element
     */
    public void xsetBILLPMTSTATUSCODE(net.ofx.types.x2003.x04.BillPaymentstatusCodeEnum billpmtstatuscode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BillPaymentstatusCodeEnum target = null;
            target = (net.ofx.types.x2003.x04.BillPaymentstatusCodeEnum)get_store().find_element_user(BILLPMTSTATUSCODE$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BillPaymentstatusCodeEnum)get_store().add_element_user(BILLPMTSTATUSCODE$2);
            }
            target.set(billpmtstatuscode);
        }
    }
    
    /**
     * Gets the "DTEFF" element
     */
    public java.lang.String getDTEFF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEFF$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTEFF" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTEFF()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEFF$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DTEFF" element
     */
    public void setDTEFF(java.lang.String dteff)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEFF$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTEFF$4);
            }
            target.setStringValue(dteff);
        }
    }
    
    /**
     * Sets (as xml) the "DTEFF" element
     */
    public void xsetDTEFF(net.ofx.types.x2003.x04.DateTimeType dteff)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEFF$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTEFF$4);
            }
            target.set(dteff);
        }
    }
    
    /**
     * Gets the "STATUSMODBY" element
     */
    public net.ofx.types.x2003.x04.StatusModBYEnum.Enum getSTATUSMODBY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUSMODBY$6, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.StatusModBYEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "STATUSMODBY" element
     */
    public net.ofx.types.x2003.x04.StatusModBYEnum xgetSTATUSMODBY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StatusModBYEnum target = null;
            target = (net.ofx.types.x2003.x04.StatusModBYEnum)get_store().find_element_user(STATUSMODBY$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "STATUSMODBY" element
     */
    public boolean isSetSTATUSMODBY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STATUSMODBY$6) != 0;
        }
    }
    
    /**
     * Sets the "STATUSMODBY" element
     */
    public void setSTATUSMODBY(net.ofx.types.x2003.x04.StatusModBYEnum.Enum statusmodby)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUSMODBY$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUSMODBY$6);
            }
            target.setEnumValue(statusmodby);
        }
    }
    
    /**
     * Sets (as xml) the "STATUSMODBY" element
     */
    public void xsetSTATUSMODBY(net.ofx.types.x2003.x04.StatusModBYEnum statusmodby)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StatusModBYEnum target = null;
            target = (net.ofx.types.x2003.x04.StatusModBYEnum)get_store().find_element_user(STATUSMODBY$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.StatusModBYEnum)get_store().add_element_user(STATUSMODBY$6);
            }
            target.set(statusmodby);
        }
    }
    
    /**
     * Unsets the "STATUSMODBY" element
     */
    public void unsetSTATUSMODBY()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STATUSMODBY$6, 0);
        }
    }
}
